package com.aeye.mbr.common.base.constants;

public enum ModelType {
	FACE_VIS(111,"可见光"),FACE_NIR(112,"近红外"),
	FINGER_VEIN_REFLECTION(121,"指静脉反射"),FINGER_VEIN_PERSPECTIVE(122,"指静脉透视"),
	PALM_VEIN_REFLECTION(131,"掌静脉反射"),PALM_VEIN_PERSPECTIVE(132,"掌静脉透视"),
	FINGER_PRINT_EPIDERMAL(151,"指纹表皮"),FINGER_PRINT_LEATHER(152,"指纹真皮"),
	IRIS_VEIN(141,"虹膜"),VOICE_PRINT(161,"声纹");
	public static final int MODEL_VOICEPRINT = 161;
	private ModelType(int code,String name){
		this.code = code;
		this.name = name;
	}
	
	public static ModelType valueOf(int code)
	{
		for(ModelType type: ModelType.values())
		{
			if(code == type.getCode())
			{
				return type;
			}
		}
		return null;
	}
	
	int code;
	String name;
	public int getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
}
